﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<cludg.Web.Core.ViewModels.Alert>" %>
<%@ Import Namespace="cludg.Web.Core.ViewModels" %>
<script type="text/javascript">
	$(document).ready(
		animateCloseMessageBox
    );
</script>
<% // Definde class name
	string className = "clean-gray";
	switch (Model.Type)
	{
		case MessageType.Info:
			className = "clean-gray";
			break;
		case MessageType.Success:
			className = "clean-ok";
			break;
		case MessageType.Warning:
			className = "clean-yellow";
			break;
		case MessageType.Error:
			className = "clean-error";
			break;
	}
%>
<div id="msgBoxContainer" style="<%: Model.Type == MessageType.None ? "display:none" : "" %>">
	<div class="<%:className %>">
<%--		<div style="float:right; z-index:500;">
			<img id="closeMsgBox" src="../../Content/images/close-msg.png" alt="Close" title="Закрыть" />
		</div>
--%>		<%: Model.Message %>
	</div>
</div>
